import Layout from '@/layout'

//员工管理：employeee
export default {
    path: '/employee',
    component: Layout,
    children: [
        {// 员工管理
            path: '',
            name: 'employee',
            component: () => import('@/views/employee'),
            meta: { title: '员工管理', icon: 'user' }
        },
        {
            path: '/employee/detail/:id?', // 员工详情的地址：有无id都是可以访问的
            component: () => import('@/views/employee/components/detail.vue'),
            hidden: true, // 表示隐藏在左侧菜单
            meta: {
                title: '员工详情' // 显示在导航的文本
            }
        }
    ]
}